package com.tedu.object.day01;

/**
 * China类:市属性 县属性
 * 规则:两个类的属性与属性完全相等(重写equals()，建议重写hashcode())
 *
 *
 */
public class 判断引用类型 {
    China c1=new China();

    //需求
    China c2=new China();
}
//中国类
class China{
    //私有属性
    private String city; //私有的市属性
    private String county;// 县

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }
}
